package com.aceitunaproject.shared.message.concrete;


/**
 * Message with a chat message
 * 
 * @author Federico Bergstein
 *
 */

public class ChatMessageReceivedEvent extends BaseMessage {


	private static final long serialVersionUID = 6602252447077158942L;
	private String text;
	private String playerName;
	private Long playerId;
	
	public static final String TYPE = "ChatMessageReceivedEvent";
	



	public ChatMessageReceivedEvent() {
		super(TYPE);
	}




	/**
	 * @param text the text of the received message
	 */
	public void setText(String text) {
		this.text = text;
	}




	/**
	 * @return the text of the received message
	 */
	public String getText() {
		return text;
	}




	/**
	 * @param player the player who sent the message
	 */
	public void setPlayerName(String playerName) {
		this.playerName = playerName;
	}




	/**
	 * @return the player who sent the message
	 */
	public String getPlayerName() {
		return playerName;
	}




	/**
	 * @param playerid the  player ID of the player who sent the message 
	 */
	public void setPlayerId(Long playerId) {
		this.playerId = playerId;
	}




	/**
	 * @return the player ID of the player who sent the message 
	 */
	public Long getPlayerId() {
		return playerId;
	}


	
}
